package com.huawei.appmarket.support.video;

import android.os.SystemClock;
import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.Player.d;
import com.google.android.exoplayer2.source.TrackGroupArray;
import o.abq;
import o.abr;
import o.akx;
import o.Logger;
import o.doo;
import o.esw;
import o.esx;
import o.evt;

class VideoPlayer$2 implements d {
    final /* synthetic */ VideoPlayer ˏ;

    VideoPlayer$2(VideoPlayer videoPlayer) {
        this.ˏ = videoPlayer;
    }

    public void ॱ(abr o_abr, Object obj, int i) {
    }

    public void ˊ(TrackGroupArray trackGroupArray, akx o_akx) {
        VideoPlayer.ˎ(this.ˏ, false);
        VideoPlayer.ˎ(this.ˏ, SystemClock.elapsedRealtime());
        esx.ॱ(VideoPlayer.ˏ(this.ˏ) - VideoPlayer.ॱॱ(this.ˏ), doo.ˋॱ(VideoPlayer.ॱ(this.ˏ)), this.ˏ.ॱ(), this.ˏ.ˋˋ().ॱ(), VideoPlayer.ʼ(this.ˏ));
    }

    public void ˎ(boolean z) {
    }

    public void ˏ(boolean z, int i) {
        if (z && i == 3 && !VideoPlayer.ʻ(this.ˏ)) {
            VideoPlayer.ˎ(this.ˏ, true);
            esw.ˎ(SystemClock.elapsedRealtime() - VideoPlayer.ˎ(this.ˏ), doo.ˋॱ(VideoPlayer.ॱ(this.ˏ)), this.ˏ.ॱ(), this.ˏ.ˋˋ().ॱ(), VideoPlayer.ʼ(this.ˏ));
        }
        if (VideoPlayer.ʽ(this.ˏ) != null) {
            VideoPlayer.ʽ(this.ˏ).ॱ(z, i);
        }
        switch (i) {
            case 1:
                if (VideoPlayer.ॱˊ(this.ˏ) != 0) {
                    VideoPlayer.ˋ(this.ˏ, -1);
                    VideoPlayer.ᐝ(this.ˏ).ˎ(VideoPlayer.ॱˊ(this.ˏ));
                    return;
                }
                return;
            case 2:
                VideoPlayer.ˋ(this.ˏ, 6);
                VideoPlayer.ᐝ(this.ˏ).ˎ(VideoPlayer.ॱˊ(this.ˏ));
                return;
            case 3:
                if (z) {
                    VideoPlayer.ˋ(this.ˏ, 3);
                    VideoPlayer.ᐝ(this.ˏ).ˎ(VideoPlayer.ॱˊ(this.ˏ));
                    return;
                }
                return;
            case 4:
                VideoPlayer.ˋ(this.ˏ, 7);
                VideoPlayer.ᐝ(this.ˏ).ˎ(VideoPlayer.ॱˊ(this.ˏ));
                return;
            default:
                return;
        }
    }

    public void ˋ(int i) {
    }

    public void ˊ(ExoPlaybackException exoPlaybackException) {
        if (VideoPlayer.ॱˊ(this.ˏ) != 0 && exoPlaybackException != null) {
            VideoPlayer.ᐝ(this.ˏ).ˋ(exoPlaybackException.ˎ, exoPlaybackException.ˎ, this.ˏ.ॱ(), this.ˏ.ˋˋ().ॱ());
            Logger.e("VideoPlayer", "play video error: " + exoPlaybackException.toString());
            evt.ˏ(exoPlaybackException.ˎ, this.ˏ.ˋˋ(), VideoPlayer.ͺ(this.ˏ));
        }
    }

    public void ˎ(int i) {
    }

    public void ˎ(abq o_abq) {
    }

    public void ˊ() {
    }
}
